package com.service.mpl;

import java.util.Arrays;
import java.util.List;

import com.mapper.ClassifyMapper;
import com.service.IClassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.entity.Classify;

/**
 * systemService业务层处理
 * 
 * @author ruoyi
 * @date 2021-07-02
 */
@Service
public class ClassifyServiceImpl implements IClassifyService
{
    @Autowired
    private ClassifyMapper classifyMapper;

    /**
     * 查询system
     * 
     * @param cId systemID
     * @return system
     */
    @Override
    public Classify selectClassifyById(Long cId)
    {
        return classifyMapper.selectClassifyById(cId);
    }

    /**
     * 查询system列表
     * 
     * @param classify system
     * @return system
     */
    @Override
    public List<Classify> selectClassifyList(Classify classify)
    {
        return classifyMapper.selectClassifyList(classify);
    }

    /**
     * 新增system
     * 
     * @param classify system
     * @return 结果
     */
    @Override
    public int insertClassify(Classify classify)
    {
        return classifyMapper.insertClassify(classify);
    }

    /**
     * 修改system
     * 
     * @param classify system
     * @return 结果
     */
    @Override
    public int updateClassify(Classify classify)
    {
        return classifyMapper.updateClassify(classify);
    }

    /**
     * 删除system对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteClassifyByIds(String ids)
    {

//        return classifyMapper.deleteClassifyByIds();
        return -1;
    }

    /**
     * 删除system信息
     * 
     * @param cId systemID
     * @return 结果
     */
    @Override
    public int deleteClassifyById(Long cId)
    {
        return classifyMapper.deleteClassifyById(cId);
    }
}
